package cn.sfrog.project.biz.admin.mapper;

import cn.sfrog.project.biz.admin.domain.BizWithdrawBankCard;
import cn.sfrog.project.biz.admin.domain.vo.BizWithdrawBankCardQueryVO;
import cn.sfrog.project.biz.admin.domain.vo.BizWithdrawBankCardVO;
import cn.sfrog.project.biz.web.vo.account.AppUserBankCardResultVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 提现银行卡Mapper接口
 */
public interface BizWithdrawBankCardMapper extends BaseMapper<BizWithdrawBankCard> {
    /**
     * 查询提现银行卡
     *
     * @param id 提现银行卡主键
     * @return 提现银行卡
     */
    BizWithdrawBankCardVO selectBizWithdrawBankCardById(Long id);

    /**
     * 查询提现银行卡列表
     *
     * @param query 提现银行卡
     * @return 提现银行卡集合
     */
    List<BizWithdrawBankCardVO> selectBizWithdrawBankCardList(BizWithdrawBankCardQueryVO query);

    /**
     * APP-获取银行卡列表
     * @param userId
     * @return
     */
    List<AppUserBankCardResultVO> selectAppUserBankCardList(@Param("userId") Long userId);
}
